package com.java;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        int people = 0;
        Scanner scanner = new Scanner(System.in);
        do {
            people = scanner.nextInt();
            if (people > 0 && people <= 18) {
                System.out.println("少年");
            } else if (people <= 28) {
                System.out.println("青年");
            } else if (people <= 66) {
                System.out.println("中年");
            } else {
                System.out.println("老年");
            }
        }while(people!=0);
    }
}
